//
//  NYExamineTestSubmitSuccessView.m
//  NiuWaJiaoYu
//
//  Created by MinLison on 2018/1/10.
//  Copyright © 2018年 niuwaketang. All rights reserved.
//

#import "NYExamineTestSubmitSuccessView.h"
@interface NYExamineTestSubmitSuccessView ()
@property(nonatomic, strong) UIImageView *iconImgView;
@property(nonatomic, strong) TTTAttributedLabel *titleLabel;
@end
@implementation NYExamineTestSubmitSuccessView

- (void)setupView
{
        [super setupView];
        self.iconImgView = [[UIImageView alloc] initWithImage:[UIImage kao_shi_ti_jiao_cheng_gong]];
        self.iconImgView.contentMode = UIViewContentModeScaleAspectFit;
        [self addSubview:self.iconImgView];
        [self addSubview:self.titleLabel];
        UIStackView *stackView = [[UIStackView alloc] initWithArrangedSubviews:@[self.iconImgView,self.titleLabel]];
        stackView.axis = UILayoutConstraintAxisVertical;
        stackView.distribution = UIStackViewDistributionFillProportionally;
        stackView.alignment = UIStackViewAlignmentFill;
        stackView.spacing = 20;
        [self addSubview:stackView];
        [stackView mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.center.equalTo(self);
        }];
}
- (TTTAttributedLabel *)titleLabel
{
        if (_titleLabel == nil) {
                _titleLabel = [[TTTAttributedLabel alloc] initWithFrame:CGRectZero];
                _titleLabel.textColor = UIColorHex(0x999999);
                _titleLabel.textAlignment = NSTextAlignmentCenter;
                _titleLabel.font = WGSystem16Font;
                _titleLabel.text = @"提交成功，等待老师评分！";
        }
        return _titleLabel;
}
@end
